<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class GroupRecordsResource extends JsonResource
{
	public function toArray($request)
	{
		$resource = $this->resource;
		
		return [
			'group_id'                   => (int)$resource->group_id,
			'user'                   => new UserResource($resource->user),
		];
	}
}
